Splash Cursor
Move Your Cursor
Props
| Property | Type | Default | Description |
|---|---|---|---|
SIM_RESOLUTION | number | — | Fluid simulation resolution for velocity fields. |
DYE_RESOLUTION | number | — | Resolution of the color/dye texture. |
CAPTURE_RESOLUTION | number | — | Resolution used for certain capture operations (rarely changed). |
DENSITY_DISSIPATION | number | — | Rate at which color/density dissipates over time. |
VELOCITY_DISSIPATION | number | — | Rate at which velocity dissipates over time. |
PRESSURE | number | — | Base pressure for the fluid simulation. |
PRESSURE_ITERATIONS | number | — | Number of Jacobi iterations used for the pressure solver. |
CURL | number | — | Amount of vorticity/curl to apply for swirling effects. |
SPLAT_RADIUS | number | — | Radius of the 'splat' effect when user interacts. |
SPLAT_FORCE | number | — | Force of the fluid 'splat' on each interaction. |
SHADING | boolean | — | Toggles simple lighting/shading on the fluid. |
COLOR_UPDATE_SPEED | number | — | Frequency at which pointer colors are re-randomized. |
BACK_COLOR | object | { r: 0.5, g: 0, b: 0 } | Base background color for the fluid. Not always used if TRANSPARENT is true. |
TRANSPARENT | boolean | — | Determines if the canvas background should be rendered with alpha. |